<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk" xml:lang="en" lang="en">


	<f:view>
		<ui:composition template="../templates/templateVAD.xhtml">
			<ui:define name="pageTitle">Facture</ui:define>
			<ui:define name="body">

				<h:form id="bonAchat">

					<h:outputLabel value="Informations client"></h:outputLabel>
					<br />
					<h:outputLabel value="Nom "></h:outputLabel>
					<h:outputLabel id="nom" value="#{factureBean.facture.nomfacture}"
						style="margin-left:90px;" />

					<h:outputLabel id="prenom"
						value="#{factureBean.facture.prenomfacture}"
						style="margin-left:20px;" />
					<br />
					<h:outputLabel value="Telephone"></h:outputLabel>
					<h:outputLabel id="telephone"
						value="#{factureBean.facture.telephonefacture}"
						style="margin-left:90px;" />
					<br />

					<h:outputLabel value="Email"></h:outputLabel>
					<h:outputLabel id="email"
						value="#{factureBean.facture.emailfacture}"
						style="margin-left:90px;" />
					<br />
					<h:outputLabel value="Adresse "></h:outputLabel>

					<h:outputLabel id="adresse"
						value="#{factureBean.facture.adressefacture}"
						style="margin-left:90px;" />
					<br />
					<h:outputLabel value="CP/Ville"></h:outputLabel>
					<h:outputLabel id="paye"
						value="#{factureBean.facture.villefacture}"
						style="margin-left:90px;" />
					<br />
					<br />
					<br />
					<h:outputLabel value="Detail de paiement" style="padding-top:50p;"></h:outputLabel>

					<br />
					<h:outputLabel value="Methode de paiment" style="margin-top:50p;"></h:outputLabel>
					<h:selectOneMenu required="true"
						value="#{factureBean.facture.methodefacture}">
						<f:selectItem itemLabel="Visa" itemValue="visa" />
						<f:selectItem itemLabel="Mastercard" itemValue="master" />
					</h:selectOneMenu>
					<br />
					<h:outputLabel value="Numero de carte de paiment"
						style="margin-top:50p;"></h:outputLabel>
					<h:inputText value="#{factureBean.facture.numerocartefacture}"
						required="true"></h:inputText>
					<br />

					<h:outputLabel value="Date expiration" style="margin-top:50p;"></h:outputLabel>
					
					<h:outputLabel value="Mois" style="margin-top:50p;"></h:outputLabel>
					<h:selectOneMenu  value="#{factureBean.mois}">
					<f:selectItem itemLabel="01" itemValue="1"/>
					<f:selectItem itemLabel="02" itemValue="2"/>
					<f:selectItem itemLabel="03" itemValue="3"/>
					<f:selectItem itemLabel="04" itemValue="4"/>
					<f:selectItem itemLabel="05" itemValue="5"/>
					<f:selectItem itemLabel="06" itemValue="6"/>
					<f:selectItem itemLabel="07" itemValue="7"/>
					<f:selectItem itemLabel="08" itemValue="8"/>
					<f:selectItem itemLabel="09" itemValue="9"/>
					<f:selectItem itemLabel="10" itemValue="10"/>
					<f:selectItem itemLabel="11" itemValue="11"/>
					<f:selectItem itemLabel="12" itemValue="12"/>
					
		
					</h:selectOneMenu>
					<h:outputLabel value="Annee" style="margin-top:50p;"></h:outputLabel>
					<h:selectOneMenu  value="#{factureBean.annee}">
					<f:selectItem itemLabel="11" itemValue="1"/>
					<f:selectItem itemLabel="12" itemValue="2"/>
					<f:selectItem itemLabel="13" itemValue="3"/>
					<f:selectItem itemLabel="14" itemValue="4"/>
					<f:selectItem itemLabel="15" itemValue="5"/>
					<f:selectItem itemLabel="16" itemValue="6"/>
					<f:selectItem itemLabel="17" itemValue="7"/>
					<f:selectItem itemLabel="18" itemValue="8"/>
					<f:selectItem itemLabel="19" itemValue="9"/>
					<f:selectItem itemLabel="20" itemValue="10"/>
					<f:selectItem itemLabel="21" itemValue="11"/>
					<f:selectItem itemLabel="22" itemValue="12"/>
					</h:selectOneMenu>
					<br /><br />
					<h:outputLabel value="Code de verification de la carte" style=""></h:outputLabel>
					<h:inputText value="#{factureBean.facture.codeverificationfacture}"
						required="true"></h:inputText>
					<br />
					<h:outputLabel
						value="(3 chiffres au dos de la carte, a cota du numero de la carte) "></h:outputLabel>
					<br />
					
					<h:message for="bonAchat" infoClass="errorText"
						style="font-size: 15px; padding-top:800px;color: #c10003;font-weight:bold;"
						showSummary="true" />
					<br />
					<h:commandButton value="Envoyer"
						action="#{factureBean.paiement}"></h:commandButton>
					<h:commandButton value="Annuler"></h:commandButton>
				</h:form>


			</ui:define>
		</ui:composition>
	</f:view>
</html>

